<?php
declare (strict_types = 1);

namespace app\logic;

use app\model\UserOauth;


class UserOauthLogic extends BaseLogic
{

    /**
     * 设置模型
     * @return string
     */
    protected function getModelName(): string
    {
        return UserOauth::class;
    }

    /**
     * @Description: 获取用户openid
     * @author: xiayu <cb1071403016@126.com>
     * @param [type] $where
     * @Date: 2022-11-24 14:00:29
     * @version: 1.0.0
     * @return [type]
     */    
    public static function getOpenId($where){
        
        $res = UserOauth::where($where)->value('openid');

        return $res;
    }
}
